﻿using System.ComponentModel.DataAnnotations;

namespace Traceab.DTO
{
    public class TraceDto
    {
        /// <summary>
        /// 图片id
        /// </summary>
        [Key]
        public int ImgsId { get; set; }
        /// <summary>
        /// 图片名称
        /// </summary>
        public string? ImgsName { get; set; }
        /// <summary>
        /// 商品信息id
        /// </summary>
        [Key]
        public int GoodsdId { get; set; }
        /// <summary>
        /// 商品名称
        /// </summary>
        public string? GoodsdName { get; set; }
        /// <summary>
        /// 溯源表ID
        /// </summary>
        [Key]
        public int TraceabilityId { get; set; }

        /// <summary>
        /// 生产批次
        /// </summary>
        public string? Batch { get; set; }
        /// <summary>
        /// 生产许可证
        /// </summary>
        public string? License { get; set; }
        /// <summary>
        /// 保质期
        /// </summary>
        public int Sellby { get; set; }
        /// <summary>
        /// 生产企业
        /// </summary>
        public string? ManufacturingEnterprise { get; set; }
        /// <summary>
        /// 封面图片
        /// </summary>
        public string? Imgs { get; set; }

        /// <summary>
        /// 删除标志
        /// </summary>
        public bool TraceabilityDel { get; set; } = false;



        /// <summary>
        /// 添加人
        /// </summary>
        public string? addName { get; set; }
        /// <summary>
        /// 添加时间
        /// </summary>
        public DateTime? addDate { get; set; }
        /// <summary>
        /// 修改人
        /// </summary>
        public string? updateName { get; set; }
        /// <summary>
        /// 修改时间
        /// </summary>
        public DateTime? updateDate { get; set; }
        /// <summary>
        /// 删除人
        /// </summary>
        public string? delName { get; set; }
        /// <summary>
        /// 删除时间
        /// </summary>
        public DateTime? delDate { get; set; }
    }
}
